home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15191 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: big endian, little endian
  5. Date: 17 Apr 1996 09:11:57 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4l358dINN9n4@keats.ugrad.cs.ubc.ca>
  8. References: <4ku9dm$t1t@news.ycc.yale.edu> <3172C1E9.3E95@willows.com> <829730230snz@willen.demon.co.uk>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <829730230snz@willen.demon.co.uk>,
  12. Adrian Parker  <adrian@willen.demon.co.uk> wrote:
  13. >In article <3172C1E9.3E95@willows.com>
  14. >           tarang@willows.com "Tarang Deshpande" writes:
  15. >
  16. >> it has to
  17. >> do with how integers are represented in memory on different platforms.
  18. >
  19. >Ah, I see.. so is there a proper name for the problem of different
  20. >sizes of ints as well as the different storage methods ? 
  21.  
  22. Yes: ``word size'' and ``byte order'', respectively.
  23.  
  24. Add to that ``alignment'', since machines may differ in what kinds of words you
  25. can load and store to addresses that are not divisible by 2, 4 or 8, etc.
  26.  
  27. And of course, there is ``representation''. How does the machine interpret the
  28. bits of the integer or floating point number for the purpose of doing
  29. arithmetic with it? How are bit patterns assigned values?
  30. -- 
  31. I'm not really a jerk, but I play one on Usenet.
  32.